public class order {
    //用户参与订购某种食材
        protected String Type;
        protected int userID;
        order(String type,int ID){
            Type = type;
            userID = ID;
        }
        protected void purchase(item some){
            while(true){
                if(some.returnType().equals(Type)) {
                    System.out.println("用户ID为" + userID + "的顾客已成功订购到商品！");
                    break;
                }
            }

        }

}
